<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript" src="<%=basePath%>js/jquery-2.1.0.min.js"></script>
<script type="text/javascript" src="<%=basePath%>js/vue.min.js"></script>
<link rel="stylesheet" href="<%=basePath%>css/layui/css/layui.css">

<script type="text/javascript" src="<%=basePath%>js/BaseUtile.js"></script>

</head>
<body style="margin: 3%">


	<!-- 显示生产计划 -->
	<div style="margin-top: 2%; margin-left: 3%">

		<!-- 左边 -->
		<div style="float: left">

			<c:if test="${stockApply.state<=1}">
				<div style="margin-top: 1%; margin-bottom: 2%">
					<label>创建人：</label> <label>${stockApply.createBy.nickname}</label>
				</div>
				<div>
					<label>创建时间：</label> <label>${stockApply.createTime}</label>
				</div>
			</c:if>

			<c:if test="${stockApply.state>1}">
				<div style="margin-top: 1%; margin-bottom: 2%">
					<label>创建人：</label> <label>${stockApply.createBy.nickname}</label>
				</div>
				<div>
					<label>创建时间：</label> <label>${stockApply.createTime}</label>
				</div>
				<div style="margin-top: 1%; margin-bottom: 2%">
					<label>审核人：</label> <label>${stockApply.exameBy.nickname}</label>
				</div>
				<div>
					<label>审核时间：</label> <label>${stockApply.exameTime}</label>
				</div>
			</c:if>
		</div>

		<!-- 右边 -->
		<div style="float: left; margin-left: 30%">
			<c:if test="${stockApply.state==1}">
				<label style="font-size: 30px; color: red">未审核</label>
			</c:if>
			<c:if test="${stockApply.state==2}">
				<label style="font-size: 30px; color: red">审核通过</label>
			</c:if>
			<c:if test="${stockApply.state==3}">
				<label style="font-size: 30px; color: red">审核未通过</label>
			</c:if>
		</div>


	</div>

	<div>
		<hr class="layui-bg-orange">
		<div id="breakfastData">
			<table class="layui-table">
				<thead>
					<tr>
						<th>序号</th>
						<th>名称</th>
						<th>数量</th>
						<th>单位</th>
					</tr>
				</thead>
				<c:set value="0" var="num"></c:set>
				<c:forEach var="list" items="${stockApplyMaterialList}">
						<c:set value="${num+1}" var="num"></c:set>
						<tr>
							<th>${num}</th>
							<th>${list.material.materialName}</th>
							<th>${list.quantity}</th>
							<th>${list.material.unit.unitName}</th>
						</tr>
				</c:forEach>
			</table>
		</div>
		
		</div>
		<hr class="layui-bg-orange">
		<div>
			<label class="layui-form-label">备注:</label>
			<textarea disabled="disabled" class="layui-textarea">${stockApply.remark}</textarea>
		</div>
		<hr class="layui-bg-orange">

		<c:if test="${remark=='exame'}">
			<div>
				<label class="layui-form-label">审核意见:</label>
				<textarea id="inputExameSuggestion" class="layui-textarea"
					placeholder="请输入审核意见"></textarea>
			</div>
		</c:if>


		<c:if test="${stockApply.state>1}">
			<div>
				<label class="layui-form-label">审核意见:</label>
				<textarea class="layui-textarea" disabled="disabled">${stockApply.exameSuggestion}</textarea>
			</div>
		</c:if>
	</div>









	<script type="text/javascript" src="<%=basePath%>css/layui/layui.js"></script>
	<script>
		layui.use('form', function() {

		});
	</script>
</body>
</html>